package cn.myfirefly.moming.portal.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "mm_user_background")
public class MMUserBackground implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2680711431287046916L;
	private Integer userBackgroundSn;
	private Integer userSn;
	private String backgroundUrl;

	public MMUserBackground() {
	}

	public MMUserBackground(Integer userBackgroundSn, Integer userSn, String backgroundUrl) {
		this.userBackgroundSn = userBackgroundSn;
		this.userSn = userSn;
		this.backgroundUrl = backgroundUrl;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "user_background_sn", unique = true, nullable = false)
	public Integer getUserBackgroundSn() {
		return this.userBackgroundSn;
	}

	public void setUserBackgroundSn(Integer userBackgroundSn) {
		this.userBackgroundSn = userBackgroundSn;
	}

	@Column(name = "user_sn")
	public Integer getUserSn() {
		return this.userSn;
	}

	public void setUserSn(Integer userSn) {
		this.userSn = userSn;
	}

	@Column(name = "background_url", length = 500)
	public String getBackgroundUrl() {
		return backgroundUrl;
	}

	public void setBackgroundUrl(String backgroundUrl) {
		this.backgroundUrl = backgroundUrl;
	}

}
